home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-07-12 | 2.3 KB | 54 lines | [TEXT/GEOL] |
- Item 5775212 27-June-89 20:09
-
- From: D1220 Vari-Lite, Andy Meldrum, PRT
-
- To: MACAPP.TECH$ MACAPP Tech
-
- Sub: Extending Object Pascal
-
- Often times I find myself writing code such as the following..
-
-
- blah blah blah { Some great code goes here..}
- fMyObject.Free; { Thank you & good night }
- fMyObject := NIL; { Track that no valid object is here }
-
- If I don't do this then when I later make use of a seemingly valid object
- reference I crash & burn..
-
- Since I do this a lot this is a candidate for putting in an Object. Since
- I really want this for all Objects I would really like it in TObject.
- Is this addition worth adding to MacApp ?? It sure saves a lot of bother..
-
- Which brings me to some other (philosophical) questions...
-
- Is there a way that would allow developers (me, in this case) to extend
- functionality of TObject, say, without actually having to mess with the UObject
- unit. I guess I have in mind some kind of UObject.ext file that would magically
- be added in to the UObject.p file. The reason for this is that I would like to
- isolate my extensions to MacApp from the body of code that Apple distributes,
- so when I update to the latest & greatest I can keep my extensions. Maybe just
- a standard set of includes might work.
-
- I read with interest Borlands entry into the Object Programming Market. It
- seems to me (reading the ads, you understand) that they have a new & improved
- Object Pascal in the sense that they have provided for Constructors &
- Destructors. This kind of begs the question regarding Apples' commitment to
- Object Pascal. Every one & his cat is discovering Object Pascal just as Apple
- dicovers C++. Whats the deal ? Do we live with what we have for ever, till
- CFront ships & we all froth C at the mouth, or can we expect incremental
- improvements to the Pascal Compiler ?? Close reading of DTS's Q&A suggests that
- the MPW Pascal compiler is in for some work soon anyway, allowing SADE to
- support record structures, and maybe even Objects... Maybe this would be a
- great time to tack some 'new & improved' features onto the compiler.
-
- I gues my real comment here is that I still use Object Pascal to solve Real
- World problems & have a vested interest in seeing it get better.
-
- Yours living in hope
-
- Andy.
-
-
-
-